<template>
   <div><wangEditor v-model="wangEditorDetail" :isClear="isClear" @change="wangEditorChange"></wangEditor></div>

</template>

<script>
  import wangEditor from "@/components/wangEditor";
  export default {
      components: { wangEditor },
      data: function() {
        return {
          isClear: false,//设置为true的时候，这个可以用this.wangEditorDetail=''来替代
          wangEditorDetail: ""
        }
      },
      mounted() {
          this.wangEditorDetail = "我是默认值"; //设置富文本框默认显示内容
      },
      methods: {
          wangEditorChange(val) {
              console.log("我是富文本的内容"+val);
              }
            }
          }
</script>

